import http from "@/utils/http";

export function getDictDataList(params = {}) {
  return http.post("/system/dict/data/list", params);
}

export function addDictData(params) {
  return http.post("/system/dict/data/insert", params);
}

export function updateDictData(params) {
  return http.post("/system/dict/data/update", params);
}

export function deleteDictData(dictCode) {
  return http.post("/system/dict/data/delete", dictCode, {
    headers: {
      "content-type": "application/json",
    },
  });
}

export function deleteBatchDictData(dictCodes) {
  return http.post("/system/dict/data/deleteBatch", dictCodes);
}
